From 12450cfcef4b4300e0114ad5d0322a8ea6b0e988 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 6 Aug 2020 20:00:49 -0400 Subject: [PATCH] wayland: Don't leak content formats We were not unreffing the formats here. --- gdk/wayland/gdkdevice-wayland.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c index 6ca368d9aa..0d773cf272 100644 --- a/gdk/wayland/gdkdevice-wayland.c +++ b/gdk/wayland/gdkdevice-wayland.c @@ -1187,6 +1187,8 @@ data_device_enter (void *data, gdk_wayland_drop_set_source_actions (seat->drop, seat->pending_source_actions); gdk_wayland_drop_set_action (seat->drop, seat->pending_action); + gdk_content_formats_unref (formats); + gdk_wayland_seat_discard_pending_offer (seat); gdk_surface_get_origin (gdk_drop_get_surface (seat->drop), &origin_x, &origin_y); -- 2.30.2